package com.wudl.flink.hbase.model;

import com.alibaba.fastjson.JSON;
import lombok.Data;

/**
 * @author ：wudl
 * @date ：Created in 2021-12-08 22:30
 * @description： {"address":"深圳","age":20,"createTime":"2021-12-08 22:30","id":1,"name":"hdfs"}
 * @modified By：
 * @version: 1.0
 */

@Data
public class User {
    private  int id;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    private String name;
    private int age;
    private  String address;
    private String createTime;

    public static void main(String[] args) {
        User u = new User();
        u.setId(1);
        u.setName("hdfs");
        u.setAge(20);
        u.setAddress("深圳");
        u.setCreateTime("2021-12-08 22:30");
        String s = JSON.toJSONString(u);
        System.out.println(s);
    }

}
